package com.xy.xymall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xy.common.utils.PageUtils;
import com.xy.xymall.order.entity.OrderEntity;
import com.xy.xymall.order.vo.OrderConfirmVo;
import com.xy.xymall.order.vo.OrderSubmitVo;
import com.xy.xymall.order.vo.SubmitOrderRespVo;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author XY
 * @email 2447315136@qq.com
 * @date 2020-04-12 09:13:50
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;

    /**
     * @param vo
     * @author XY
     * @date 2021/1/14 11:19
     * @Description 下单
     */
    SubmitOrderRespVo submitOrder(OrderSubmitVo vo);
}

